package cz.muni.fi.pa036is.dto;

import cz.muni.fi.pa036is.entity.Person;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 *
 * @author Shebik
 */
public class MatchDetailTO implements Serializable {

    private Long id;
    private Long player1Id;
    private Long player2Id;
    private SeasonBasicTO season;
    private Timestamp dateAndTime;
				private PersonDetailTO player1;
				private PersonDetailTO player2;

				public PersonDetailTO getPlayer1() {
								return player1;
				}

				public void setPlayer1(PersonDetailTO player1) {
								this.player1 = player1;
				}

				public PersonDetailTO getPlayer2() {
								return player2;
				}

				public void setPlayer2(PersonDetailTO player2) {
								this.player2 = player2;
				}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPlayer1Id() {
        return player1Id;
    }

    public void setPlayer1Id(Long player1Id) {
        this.player1Id = player1Id;
    }

    public Long getPlayer2Id() {
        return player2Id;
    }

    public void setPlayer2Id(Long player2Id) {
        this.player2Id = player2Id;
    }

    public Timestamp getDateAndTime() {
        return dateAndTime;
    }

    public void setDateAndTime(Timestamp dateAndTime) {
        this.dateAndTime = dateAndTime;
    }

    public SeasonBasicTO getSeason() {
        return season;
    }

    public void setSeason(SeasonBasicTO season) {
        this.season = season;
    }


    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MatchDetailTO other = (MatchDetailTO) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "MatchDetailTO{"
                + "id=" + id
                + "player1Id=" + player1Id
                + "player2Id=" + player2Id
                + "season=" + season
                + "dateAndTime=" + dateAndTime + '}';
    }


}
